package cn.zf233.xcloud.commom.enums;

/**
 * Created by zf233 on 2020/1/30
 * 用户登陆方式
 */
public enum LoginTypeENUM {

    PHONE_OR_EMAIL_PASSWORD_REALM(1, true, "手机+密码或邮箱+密码"),
    PHONE_CODE_REALM(2, true, "手机验证码"),
    EMAIL_CODE_REALM(3, true, "邮箱验证码"),
    QQ_LOGIN_REALM(4, false, "QQ");

    private int code;//编码
    private boolean requiredPassword;//是否需要密码
    private String name;//名称

    LoginTypeENUM(int code, boolean requiredPassword, String name) {
        this.code = code;
        this.requiredPassword = requiredPassword;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isRequiredPassword() {
        return requiredPassword;
    }

    public void setRequiredPassword(boolean requiredPassword) {
        this.requiredPassword = requiredPassword;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}